﻿# include<stdio.h>
# include"BinTree.h"
int main()
{
	TREENODEPTR roota = NULL;
	CreatTree(roota);
	PrintTree(roota,0);
	PreTree(roota);
	int key;
	while(scanf("%d",&key)!=EOF)
	{
		DeleteTree(roota,key);
		PrintTree(roota,0);

        printf("\n\n");

	}

	return 0;
}
